package cn.com.css.taxInspection.workquality.controller;

import io.swagger.annotations.Api;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.ui.Model;

/**
 * 视图
 *
 * @author wenbin
 * @version V1.0
 * @date 2020年3月18日
 */
@Api(tags = "服务端口视图")
@Controller
@RequestMapping("/index/")
public class IndexMianController {

    @GetMapping("/mainSelectchief2")
    public String mainSelectchief2(Model model, String key) {
        model.addAttribute("key", key);
        return "main_selectchief2";
    }

    @GetMapping("/mainSelectchief3")
    public String mainSelectchief3(Model model, String key, String swryDm) {
        model.addAttribute("key", key);
        model.addAttribute("swryDm", swryDm);
        return "main_selectchief3";
    }

    @GetMapping("/mainclerk2")
    public String mainclerk2(Model model, String key) {
        model.addAttribute("key", key);
        return "main_clerk2";
    }

    @GetMapping("/mainclerk3")
    public String mainclerk3(Model model, String key, String swryDm) {
        model.addAttribute("key", key);
        model.addAttribute("swryDm", swryDm);
        return "main_clerk3";
    }

    //工作质效页面（局长、科长都走这个根据不同身份显示不同数据）
    @GetMapping("/jzgzzx")
    public String jzgzzx(Model model) {
        model.addAttribute("key", "jz");
        return "gzzx";
    }

    //工作质效页面（局长、科长都走这个根据不同身份显示不同数据）
    @GetMapping("/kzgzzx")
    public String kzgzzx(Model model) {
        model.addAttribute("key", "kz");
        return "gzzx";
    }
}
